package com.ruoyi.home.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.home.mapper.SuBrandRecommendationsMapper;
import com.ruoyi.home.domain.SuBrandRecommendations;
import com.ruoyi.home.service.ISuBrandRecommendationsService;

/**
 * 品牌推荐Service业务层处理
 *
 * @author ruoyi
 * @date 2025-06-18
 */
@Service
public class SuBrandRecommendationsServiceImpl implements ISuBrandRecommendationsService
{
    @Autowired
    private SuBrandRecommendationsMapper suBrandRecommendationsMapper;

    /**
     * 查询品牌推荐
     *
     * @param id 品牌推荐主键
     * @return 品牌推荐
     */
    @Override
    public SuBrandRecommendations selectSuBrandRecommendationsById(Long id)
    {
        return suBrandRecommendationsMapper.selectSuBrandRecommendationsById(id);
    }

    /**
     * 查询品牌推荐列表
     *
     * @param suBrandRecommendations 品牌推荐
     * @return 品牌推荐
     */
    @Override
    public List<SuBrandRecommendations> selectSuBrandRecommendationsList(SuBrandRecommendations suBrandRecommendations)
    {
        return suBrandRecommendationsMapper.selectSuBrandRecommendationsList(suBrandRecommendations);
    }

    /**
     * 新增品牌推荐
     *
     * @param suBrandRecommendations 品牌推荐
     * @return 结果
     */
    @Override
    public int insertSuBrandRecommendations(SuBrandRecommendations suBrandRecommendations)
    {
        return suBrandRecommendationsMapper.insertSuBrandRecommendations(suBrandRecommendations);
    }

    /**
     * 修改品牌推荐
     *
     * @param suBrandRecommendations 品牌推荐
     * @return 结果
     */
    @Override
    public int updateSuBrandRecommendations(SuBrandRecommendations suBrandRecommendations)
    {
        return suBrandRecommendationsMapper.updateSuBrandRecommendations(suBrandRecommendations);
    }

    /**
     * 批量删除品牌推荐
     *
     * @param ids 需要删除的品牌推荐主键
     * @return 结果
     */
    @Override
    public int deleteSuBrandRecommendationsByIds(Long[] ids)
    {
        return suBrandRecommendationsMapper.deleteSuBrandRecommendationsByIds(ids);
    }

    /**
     * 删除品牌推荐信息
     *
     * @param id 品牌推荐主键
     * @return 结果
     */
    @Override
    public int deleteSuBrandRecommendationsById(Long id)
    {
        return suBrandRecommendationsMapper.deleteSuBrandRecommendationsById(id);
    }
}
